Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

369 allowing tests to be performed at individual locations not only location types #752

Conversation

khoanguyen-dev
Copy link
Member

@khoanguyen-dev khoanguyen-dev commented Aug 24, 2023

Changes and Information

Please briefly list the changes made, additional Information and what the Reviewer should look out for:

  • Remove Location from TestingCriteria
  • Use bitset for infectionState and unordered_set for AgeGroup instead of vector for TestingCriteria
  • Only one TestingCriteria per TestingScheme
  • Add map of LocationID to TestingScheme in TestingStrategy so run_strategy() will check Location and run only the corresponding schemes.

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below)
  • New code adheres to coding guidelines
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
  • Tests are added for new functionality and a local test run was successful
  • Appropriate documentation for new functionality has been added (Doxygen in the code and Markdown files if necessary)
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.)
  • Appropriate unit tests have been added, CI passes and code coverage is acceptable (did not decrease)
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)

Closes #369
Closes #755

@khoanguyen-dev khoanguyen-dev changed the title Add template for TestingCriteria to be apply for LocationType/Location 369-allowing-tests-to-be-performed-at-individual-locations-not-only-location-types Aug 24, 2023
@khoanguyen-dev khoanguyen-dev changed the title 369-allowing-tests-to-be-performed-at-individual-locations-not-only-location-types 369 allowing tests to be performed at individual locations, not only location types Aug 24, 2023
@khoanguyen-dev khoanguyen-dev changed the title 369 allowing tests to be performed at individual locations, not only location types 369 allowing tests to be performed at individual locations not only location types Aug 24, 2023
@codecov
Copy link

codecov bot commented Aug 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b808ce) 95.25% compared to head (d3eb492) 95.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #752      +/-   ##
==========================================
+ Coverage   95.25%   95.28%   +0.02%     
==========================================
  Files         113      113              
  Lines        9102     9074      -28     
==========================================
- Hits         8670     8646      -24     
+ Misses        432      428       -4     
Files Coverage Δ
cpp/models/abm/location_type.h 100.00% <100.00%> (ø)
cpp/models/abm/testing_strategy.cpp 100.00% <100.00%> (+3.57%) ⬆️
cpp/models/abm/testing_strategy.h 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@xsaschako xsaschako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, a few quesions and comments remain

cpp/models/abm/location_type.h Outdated Show resolved Hide resolved
cpp/models/abm/testing_strategy.h Outdated Show resolved Hide resolved
cpp/models/abm/testing_strategy.h Show resolved Hide resolved
cpp/models/abm/testing_strategy.h Outdated Show resolved Hide resolved
cpp/models/abm/testing_strategy.h Show resolved Hide resolved
cpp/models/abm/testing_strategy.h Outdated Show resolved Hide resolved
cpp/models/abm/testing_strategy.cpp Show resolved Hide resolved
cpp/models/abm/testing_strategy.cpp Outdated Show resolved Hide resolved
cpp/models/abm/testing_strategy.cpp Show resolved Hide resolved
cpp/models/abm/testing_strategy.cpp Outdated Show resolved Hide resolved
xsaschako

This comment was marked as duplicate.

xsaschako

This comment was marked as duplicate.

Copy link
Member

@xsaschako xsaschako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! Thank you

@xsaschako xsaschako merged commit e24b555 into main Nov 10, 2023
55 checks passed
@xsaschako xsaschako deleted the 369-allowing-tests-to-be-performed-at-individual-locations-not-only-location-types branch November 10, 2023 13:25
@khoanguyen-dev khoanguyen-dev linked an issue Nov 10, 2023 that may be closed by this pull request
@DavidKerkmann DavidKerkmann mentioned this pull request Nov 24, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants